package com.android.lovely.ui.dialog

import com.android.lovely.data.AiCreateEvent
import com.android.lovely.databinding.DialogCreateImageBinding
import com.android.lovely.framework.BaseDialogFragment
import com.android.lovely.ui.activity.HomeActivity
import com.kotlin.extensions.context.ContextExt.startPage
import com.kotlin.extensions.context.ContextExt.startPageClearTop
import com.kotlin.extensions.view.ViewExt.clickable

/**
 *
 * @author why
 * @date 2025/4/13 00:29
 */
class CreateImageLoadDialog: BaseDialogFragment<DialogCreateImageBinding>() {
    override fun initializeViews() {
        binding.task.clickable {
//            startPage<AiTaskActivity>()
            requireActivity().startPageClearTop<HomeActivity>(
            "position" to 3,
            "task" to true
            )
            dismissAllowingStateLoss()
        }
        binding.ok.clickable {
            dismissAllowingStateLoss()
        }
    }
}